﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kokomo.Lexical.Expressions;

namespace Kokomo.PeInspector.Reflection.Query
{
	class FromClause : QueryClause
	{
		public Expression Source { get; private set; }
		public TypedVariable RangeVariable { get; private set; }

		public FromClause(
			Expression source,
			TypedVariable rangeVariable
			)
		{
			if (source == null) throw new ArgumentNullException("source");
			if (rangeVariable == null) throw new ArgumentNullException("rangeVariable");

			this.Source = source;
			this.RangeVariable = rangeVariable;
		}
	}
}
